﻿namespace Ord.Api.Applications.Profiles
{
    public class OrdProfile : Profile
    {
        public OrdProfile()
        {
            CreateMap(typeof(PagedModel<>), typeof(PageModelVo<>)).ForMember("XData", opt => opt.Ignore());

            CreateMap<Order, OrderVo>();

            CreateMap<Models.Aggregates.OrderAggregate.OrderItem, OrderVo.OrderItemDto>();
        }
    }
}
